add_executable(
    test_deepks
    main_deepks.cpp klist_1.cpp LCAO_deepks_test_prep.cpp LCAO_deepks_test.cpp
    ../../../source_cell/unitcell.cpp
    ../../../source_cell/update_cell.cpp
    ../../../source_cell/bcast_cell.cpp
    ../../../source_cell/atom_spec.cpp
    ../../../source_cell/atom_pseudo.cpp
    ../../../source_cell/read_atoms.cpp
    ../../../source_cell/read_stru.cpp
    ../../../source_cell/print_cell.cpp
    ../../../source_cell/read_atom_species.cpp
    ../../../source_cell/setup_nonlocal.cpp
    ../../../source_cell/pseudo.cpp
    ../../../source_cell/read_pp.cpp
    ../../../source_cell/read_pp_complete.cpp
    ../../../source_cell/read_pp_upf100.cpp
    ../../../source_cell/read_pp_upf201.cpp
    ../../../source_cell/read_pp_vwr.cpp
    ../../../source_cell/read_pp_blps.cpp
    ../../../source_cell/sep.cpp
    ../../../source_cell/sep_cell.cpp
    ../../../source_pw/module_pwdft/soc.cpp
    ../../../source_io/output.cpp
    ../../../source_io/sparse_matrix.cpp
    ../../../source_estate/read_pseudo.cpp
    ../../../source_estate/cal_wfc.cpp
    ../../../source_estate/read_orb.cpp
    ../../../source_estate/cal_nelec_nband.cpp
    ../../../source_estate/module_dm/density_matrix.cpp
    ../../../source_estate/module_dm/density_matrix_io.cpp
    ../../../source_lcao/module_hcontainer/base_matrix.cpp
    ../../../source_lcao/module_hcontainer/hcontainer.cpp
    ../../../source_lcao/module_hcontainer/atom_pair.cpp
    ../../../source_lcao/module_hcontainer/func_transfer.cpp
    ../../../source_lcao/module_hcontainer/func_folding.cpp
    ../../../source_lcao/module_hcontainer/transfer.cpp
    ../../../source_lcao/module_hcontainer/output_hcontainer.cpp
    ../../../source_lcao/module_operator_lcao/deepks_lcao.cpp
    ../../../source_lcao/module_operator_lcao/operator_lcao.cpp
    ../../../source_hamilt/operator.cpp
    ../../../source_lcao/module_rt/td_info.cpp
    ../../../source_lcao/module_rt/td_folding.cpp
    ../../../source_estate/module_pot/H_TDDFT_pw.cpp
)

target_link_libraries(
    test_deepks
    base device parameter deepks psi planewave neighbor container
    orb gint numerical_atomic_orbitals
    ${math_libs}
)

if(ENABLE_COVERAGE)
  add_coverage(test_deepks)
endif()


install(
    TARGETS test_deepks
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/../../../../tests
)
